package com.qlshouyu.gateway.client;

public class Rsp<T> {
    /**
     * 错误码
     */
    private Integer code;

    /**
     * 结果数据
     */
    private T data;

    /**
     * 提示信息，可以为空
     */
    private String message;

    @Override
    public String toString() {
        return "Rsp{" +
                "code=" + code +
                ", data=" + data +
                ", message='" + message + '\'' +
                '}';
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
